﻿<Window x:Class="Mskold.IterationManager.ProgressDlg"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:Mskold.IterationManager"
        xmlns:converters="clr-namespace:Mskold.IterationManager"
        Title="Window1" Height="300" Width="584" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" Loaded="Window_Loaded">
    <Window.Resources>
        <converters:EnumToPicConverter x:Key="imageConverter" />
    </Window.Resources>

    <Window.DataContext >
        <vm:ProgressViewModel />
    </Window.DataContext>
    <Grid >
        <ProgressBar Height="18" HorizontalAlignment="Left" Margin="12,29,0,0" Name="progressTotal" VerticalAlignment="Top" Width="533" />
        <DataGrid AutoGenerateColumns="False" Margin="12,108,21,30" Name="dataGrid1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  ItemsSource="{Binding Path=Actions}" IsReadOnly="True" HorizontalGridLinesBrush="{x:Null}" VerticalGridLinesBrush="{x:Null}" >
            <DataGrid.Columns>
                <DataGridTemplateColumn MaxWidth="250" Header="" CanUserReorder="True">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Image Source="{Binding Path=Status, Converter={StaticResource imageConverter}}" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn Header="Action" Binding="{Binding Path=Title}"/>
                <DataGridTextColumn Header="Message" Binding="{Binding Path=Message}" />
            </DataGrid.Columns>
        </DataGrid>
        
        <TextBlock Height="23" HorizontalAlignment="Stretch" Margin="21,53,21,0" Name="txtCurrentActivity" Text="TextBlock" VerticalAlignment="Top" />
        <Button Name ="cmdClose" Content="Close" Height="23" HorizontalAlignment="Left" Margin="232,220,0,0"  VerticalAlignment="Bottom" Width="75" Click="cmdClose_Click" Visibility="Visible" />
        <TextBlock Height="23" HorizontalAlignment="Stretch" Margin="21,69,21,0" Name="txtCurrentDetail" Text="TextBlock" VerticalAlignment="Top" />
        <!--<ListBox Height="45" HorizontalAlignment="Left" Margin="21,163,0,0" Name="listBox1" VerticalAlignment="Top" Width="609" ItemsSource="{Binding Path=Actions}" >
            <ListBoxItem>
                <StackPanel>
                <Image Source="{Binding Path=Status, Converter={StaticResource imageConverter}}"></Image>                
                <TextBlock Name="txtTitle" Text="{Binding Path=Actions/Title}" />
               <TextBlock Name="txtMessage" Text="{Binding Path=Actions/Message}" />
                </StackPanel>
            </ListBoxItem>
        </ListBox>-->
    </Grid>
</Window>
